package currentThread;

public class Demo {
    public static void main(String[] args) {
        MyThread t1 = new MyThread("火箭");
        MyThread t2 = new MyThread("风水");
        System.out.println(t1.getName() + t1.getPriority());
        System.out.println(Thread.currentThread().getName() + Thread.currentThread().getPriority());
        t1.setPriority(10);
        //t1.start();
        //t2.start();
    }
}
